package com.xmz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmz.entity.Author;
import com.xmz.mapper.AuthorMapper;
import com.xmz.service.AuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthorServiceImpl extends ServiceImpl<AuthorMapper, Author> implements AuthorService {
    @Autowired
    private AuthorMapper authorMapper;

    @Override
    public List<Author> loadAllAuthor(){
        return authorMapper.selectList(null);
    }
}
